import request from '@/utils/request'
export function login (data) {
  return request({
    url: '/system-server/sysUser/login',
    method: 'post',
    data
  })
}

export const getMenuByUser = data => {
  return request({
    url: '/system-server/sysUser/resources',
    method: 'get',
    params: data
  })
}

export function restPwd (data) {
  return request({
    url: '/system-server/sysUser/resetPwd',
    method: 'post',
    data
  })
}